package com.my.stockcomeenter.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.stockcomeenter.entity.StockComeEnter;
import com.my.stockcomeenter.mapper.StockComeEnterMapper;
import com.my.stockcomeenter.service.StockComeEnterService;

@Service
public class StockComeEnterServiceImpl implements StockComeEnterService {
	@Autowired
	private StockComeEnterMapper stockComeEnterMapper;

	@Override
	public List<StockComeEnter> getStockComeEnter(Map<String, Object> map) {
		return stockComeEnterMapper.selectByExample(map);
	}

	@Override
	public void addStockComeEnter(StockComeEnter stockComeEnter) {
		stockComeEnterMapper.insert(stockComeEnter);
	}

}
